package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 动态过滤条件表 实体类
 * @author chenjiehong
 * @date 2019-11-29 15:15:38
 * @since 1.0
 */
@TableName(value = "dynamic_filter")
public class DynamicFilter {


    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 动态类型
	 */
	@TableField(value = "dynamic_type")
	private Integer dynamicType; 

	/**
	 * 夫行业类别编码
	 */
	@TableField(value = "parent_category_code")
	private String parentCategoryCode; 

	/**
	 * 夫行业类别名称
	 */
	@TableField(value = "parent_category_name")
	private String parentCategoryName; 

	/**
	 * 子行业类别名称
	 */
	@TableField(value = "sub_category_name")
	private String subCategoryName; 

	/**
	 * 子行业类别编码
	 */
	@TableField(value = "sub_category_code")
	private String subCategoryCode; 

	/**
	 * 筛选名称
	 */
	private String name; 

	/**
	 * 筛选类型 1：单选 2：单选范围 3：数值范围 4：是和否 5：多选
	 */
	private Integer type; 

	/**
	 * 字典类型id 用在属性值类型为单选和单选范围时
	 */
	@TableField(value = "dictionary_type_id")
	private Integer dictionaryTypeId; 

	/**
	 * 属性id
	 */
	@TableField(value = "attribute_default_id")
	private Integer attributeDefaultId; 

	/**
	 * 状态 1：正常 0:删除
	 */
	private Integer state; 
	// columns END


	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getDynamicType() {
		return dynamicType;
	}

    public void setDynamicType(Integer dynamicType) {
    	this.dynamicType = dynamicType;
    }
	public String getParentCategoryCode() {
		return parentCategoryCode;
	}

    public void setParentCategoryCode(String parentCategoryCode) {
    	this.parentCategoryCode = parentCategoryCode;
    }
	public String getParentCategoryName() {
		return parentCategoryName;
	}

    public void setParentCategoryName(String parentCategoryName) {
    	this.parentCategoryName = parentCategoryName;
    }
	public String getSubCategoryName() {
		return subCategoryName;
	}

    public void setSubCategoryName(String subCategoryName) {
    	this.subCategoryName = subCategoryName;
    }
	public String getSubCategoryCode() {
		return subCategoryCode;
	}

    public void setSubCategoryCode(String subCategoryCode) {
    	this.subCategoryCode = subCategoryCode;
    }
	public String getName() {
		return name;
	}

    public void setName(String name) {
    	this.name = name;
    }
	public Integer getType() {
		return type;
	}

    public void setType(Integer type) {
    	this.type = type;
    }
	public Integer getDictionaryTypeId() {
		return dictionaryTypeId;
	}

    public void setDictionaryTypeId(Integer dictionaryTypeId) {
    	this.dictionaryTypeId = dictionaryTypeId;
    }
	public Integer getAttributeDefaultId() {
		return attributeDefaultId;
	}

    public void setAttributeDefaultId(Integer attributeDefaultId) {
    	this.attributeDefaultId = attributeDefaultId;
    }
	public Integer getState() {
		return state;
	}

    public void setState(Integer state) {
    	this.state = state;
    }
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[dynamicType:" + getDynamicType() + "]";
		log += "[parentCategoryCode:" + getParentCategoryCode() + "]";
		log += "[parentCategoryName:" + getParentCategoryName() + "]";
		log += "[subCategoryName:" + getSubCategoryName() + "]";
		log += "[subCategoryCode:" + getSubCategoryCode() + "]";
		log += "[name:" + getName() + "]";
		log += "[type:" + getType() + "]";
		log += "[dictionaryTypeId:" + getDictionaryTypeId() + "]";
		log += "[attributeDefaultId:" + getAttributeDefaultId() + "]";
		log += "[state:" + getState() + "]";
		return log;
	}
}